-- GENERATED SPELL FOR [Scourge Deathspeaker] --


function spell0_27615(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(52282,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27615', 3000, 1)
end

function spell1_27615(pUnit, Event) --@Flame of the Seer,Self--
pUnit:FullCastSpellOnTarget(52281,pUnit)
pUnit:RegisterEvent('Sorts_27615', 556, 1)
end

function Sorts_27615(pUnit, Event)
local choix_sorts_27615 = math.random(0, 1)
if choix_sorts_27615 == 0 then
pUnit:RegisterEvent('spell0_27615', 1, 1)
end
if choix_sorts_27615 == 1 then
pUnit:RegisterEvent('spell1_27615', 1, 1)
end
end

function mob27615_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27615', math.random(1500, 3000), 1)
end

function mob27615_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27615_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27615_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27615, 1, 'mob27615_Action')
RegisterUnitEvent(27615, 2, 'mob27615_Leave')
RegisterUnitEvent(27615, 3, 'mob27615_Kill')
RegisterUnitEvent(27615, 4, 'mob27615_Die')
